#include <stdio.h>

int main(){
    double n;
    scanf("%lf", &n);
    if (n >= 10000){
        n = (int) (n / 1000 + 0.5);
        n = (double) n / 10;
        printf("%.1fW", n);        
    }else{
        printf("%.0f", n);
    }
}
